﻿using System;
using System.Configuration;

namespace FBGraph.Web.Configuration
{
    /// <summary>Defines configuration settings that are used to support WebForms authentication based on the Graph API.</summary>
    public class FBGraphAuthenticationSection : ConfigurationSection
    {
        /// <summary>Gets or sets the absolute or relative url that the user should be redirected to when FBGraph authentication is required.</summary>
        [ConfigurationProperty("authUrl", IsRequired = false)]
        public String AuthUrl
        {
            get { return (String)this["authUrl"]; }
            set { this["authUrl"] = value; }
        }

        /// <summary>Gets or sets the absolute or relative url that the user is redirected to be default after authentication if no return url is specified.</summary>
        [ConfigurationProperty("defaultUrl", IsRequired = false)]
        public String DefaultUrl
        {
            get { return (String)this["defaultUrl"]; }
            set { this["authUrl"] = value; }
        }
    }
}